﻿using System.Collections.Generic;
using Interfaces.Validation;

namespace Framework.Validation
{
    class GenericValidationResult : IValidationResult
    {
        public GenericValidationResult(object target, bool isValid, IEnumerable<BrokenRule> brokenRules)
        {
            BrokenRules = brokenRules;
            IsValid = isValid;
            Target = target;
        }

        public object Target { get; private set; }
        public bool IsValid { get; private set; }
        public IEnumerable<BrokenRule> BrokenRules { get; private set; }
    }
}
